package com.jyh.controller.loan;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

import com.jyh.service.loan.FaceAditService;

/**
 * 借款管理 ---待活体识别
 * 
 * @author
 */
@Controller
@RequestMapping(value = "/faceAdit")
public class FaceAditController{
	private static Logger logger = Logger.getLogger(FaceAditController.class);
	@Autowired
	private FaceAditService faceAditService;

	/**
	 * 获取待活体识别页面数据
	 * 
	 * @return
	 */
	@RequestMapping(value = "/faceAdit")
	public ModelAndView getFaceAdit(HttpServletRequest request, HttpSession session) {
		try {
			logger.info("begin");
			ModelAndView mv = faceAditService.getFaceAdit(request, session);
			logger.info("end");
			return mv;
		} catch (Exception e) {
			e.printStackTrace();
			logger.error("\n -------------error信息开始-------------- \n" + e
					+ "\n -----------------error信息结束------------------\n\n");
			return null;
		}
	}
	
	
}
